home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene Storm
/
Scene Storm - Volume 1.iso
/
coding
/
asm
/
utils
/
recoqlib
/
doc
/
recoqlib.auto
Wrap
Text File
|
1980-01-03
|
1KB
|
31 lines
*--------------------------------------------------------------------*
* recoq.library version 1.3 *
*--------------------------------------------------------------------*
* Written by cath of LSd in 1993 *
*--------------------------------------------------------------------*
Name
rqWhatIs: Determines file types, if possible.
Synopsis
rqWhatIs( buffer )
A0
ULONG rqWhatIs(ULONG &buffer)
Function
This attempts to determine the type of file which is loaded at buffer.
If a match is made then D2 will point to a string which describes the file,
and D3 will be set to the length of the string. This enables it to be passed
directly to DOS Write or if you move D2 to D1 you can pass it directly to
PutStr, as the string is also zero terminated (ASCIZ). If no match is found
the D0 will be zero and D2 will point to the a string describing a data or
absolute file.
Inputs
buffer: the address of the buffer containing the file
Result
d0 Success flag
d2 ptr to ASCIZ string
d3 length of string ( not including terminating 0 )
Bugs
None known